package cn.tedu.system.user.controller;

import cn.tedu.system.user.pojo.SysUser;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "用户管理")
@RestController
@RequestMapping("/api")
public class UserController {

    @ApiOperationSupport(order = 1)
    @ApiOperation("添加用户")
    @PostMapping("/users")
    public String saveUser(@RequestBody SysUser user){
        System.out.println("===save user===");
        return "save ok";
    }
}
